<template>
    <div class="pageMain">
        <div class="header">
            <van-nav-bar title="邀请好友" left-arrow @click-left="toBack" />
        </div>
        <div class="conBox">
            <div class="box">
                <div class="box-content">
                    <div class="invite-title-text">邀请码</div>
                    <div class="line-box">
                        <img v-if="str != ''" :src="'https://zbz-imgs.oss-cn-beijing.aliyuncs.com/er/' + str"
                            class="qr-code">
                    </div>
                    <div class="invite-tip">面对面分享 中肽悦享APP</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'HomeR',
    data() {
        return {


        }
    },
    mounted() {

    },
    methods: {

        toBack() {
            this.$router.go(-1)
        },

    },
    created() {
    },
    //计算属性
    computed: {

    },
    filters: {

    }

}

</script>

<style lang='less' scoped>
.header .van-icon {
    color: #333;
    font-size: 40px;
    font-weight: bold;
}

.header .van-nav-bar__text {
    color: #333;
}

.header {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 88px;
    background-color: #fff;
    padding-top: 60px;
}

/deep/.van-nav-bar__text,
/deep/.van-nav-bar__left,
/deep/.van-nav-bar .van-icon {
    color: #333;
}

.conBox {
    box-sizing: border-box;
    padding-top: 172px;
    width: 100%;
    height: 100vh;
    background-image: url(../../assets/invite_bg.png);
    background-size: 100% 100%;

}

.pageMain {
    width: 100%;
    height: 100vh;
    background: #f2f2f2;
    overflow: scroll;
}

.invite-title-text {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 0 24px;
}

.box {

    box-sizing: border-box;
    width: 90%;
    background: rgba(255, 255, 255, .6);
    border-radius: 16px;
    padding: 16px;
    margin: 40px auto;
}

.box-content {
    background: #FFF;
    border-radius: 16px;
    padding: 40px 0;
    min-height: 700px;
}

.line-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 456px;
    height: 456px;
    background-image: url(../../assets/invite_line.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin: 40px auto;
}

.qr-code {
    display: block;
    width: 380px;
    height: 380px;
}

.invite-tip {
    font-size: 28px;
    color: #666;
    text-align: center;
}
</style>